body {
    margin: 0;
    overflow: hidden;
    background: #333;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#base {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 4px solid #666;
    border-radius: 50%;
}

#core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 20px #00ff00;
    transition: background 0.3s ease;
}

#player {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #0077ff;
    border-radius: 50%;
    cursor: none;
}

#player.damaged {
    background: #ff0000;
    transition: background 0.2s;
}

.enemy {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ff0000;
    border-radius: 50%;
}

.enemy.quick-raider {
    background: #ff6600;
    box-shadow: 0 0 10px #ff6600;
}

.enemy.heavy-raider {
    background: #990000;
    box-shadow: 0 0 15px #990000;
    width: 25px;
    height: 25px;
    border: 2px solid #ff0000;
}

.enemy.operator-raider {
    background: #4b0082;  
    box-shadow: 0 0 12px #4b0082;
    width: 20px;
    height: 20px;
    border: 2px solid #8a2be2;  
}

.bullet {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffff00;
    border-radius: 50%;
    box-shadow: 0 0 5px #ffff00;
}

#score {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 20px;
    display: flex;
    gap: 20px;
}

#timer {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 20px;
}

#director-message {
    position: fixed;
    bottom: -100px; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #666;
    padding: 20px;
    color: #0f0;
    font-family: "Courier New", monospace;
    border-radius: 10px;
    max-width: 80%;
    transition: bottom 0.5s ease-in-out;
    z-index: 1000;
}

#director-message.show {
    bottom: 20px;
}

.director-header {
    color: #ff0;
    font-weight: bold;
    margin-bottom: 10px;
}

#repair-instruction {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#repair-instruction.show {
    opacity: 1;
}

#game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 2s ease;
    pointer-events: none;
    z-index: 9999;
}

#game-over-screen.active {
    background: rgba(0, 0, 0, 0.95);
    pointer-events: all;
}

#replay-button {
    padding: 15px 30px;
    font-size: 24px;
    background: #0f0;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1s ease;
    transition-delay: 1s;
}

#game-over-screen.active #replay-button {
    opacity: 1;
}

#replay-button:hover {
    background: #0c0;
}

.player-health-bar {
    position: fixed;
    top: 60px;
    left: 20px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 20px;
}